package com.samehope.ar.service;

import com.samehope.ar.dto.PaginationParam;
import com.samehope.ar.dto.TaskNormalUpdateParam;
import com.samehope.ar.dto.TaskQueryParam;
import com.samehope.ar.entity.TaskNormal;
import com.baomidou.mybatisplus.extension.service.IService;
import com.samehope.ar.vo.*;

import java.util.List;

/**
 * <p>
 * 正式巡检任务 服务类
 * </p>
 *
 * @author Zhang Luo
 * @since 2019-12-23
 */
public interface ITaskNormalService extends IService<TaskNormal> {

    PaginationDataVO<TaskTimeVO> findByParam(PaginationParam paginationParam, TaskQueryParam param);

    void insertByPlans(PatrolTaskPlanWeekDetailVO vo);

    /**
     * 根据用户查找单独执行的未结束正式任务
     * @param userId
     * @return
     */
    List<TaskNormal> findTaskNormalByUserNotOver(Long userId);

    void delByTaskTime( String taskTime);

    void delByUnFinishTask(Long planId);

    void update(TaskNormalUpdateParam param);

    void del(Long taskId);

    TaskNormalDetailVO detail(Long taskId);

    List<FormSelectVO> getTaskName();
}
